from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

setup(
    name='iou3d_op',
    ext_modules=[
        CUDAExtension(
            name='iou3d_op',
            sources=['ops/iou3d.cpp',
                     'ops/iou3d_kernel.cu',
                     ],
            define_macros=[('WITH_CUDA', None)]
        )
    ],
    cmdclass={
        'build_ext': BuildExtension
    })